package com.lyh.db137.service.impl;

import com.lyh.db137.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyh.db137.mapper.UserroleMapper;
import com.lyh.db137.entity.Userrole;
import com.lyh.db137.service.UserroleService;

import java.util.List;

/**
  * @Author: 想要告诉你
  * @CreateTime: 2024/12/24 11:48
  * @Description: 
  * @Version: 1.0
  */
@Service
public class UserroleServiceImpl extends ServiceImpl<UserroleMapper, Userrole> implements UserroleService{
    @Autowired
    private UserroleMapper userroleMapper;
    @Override
    public List<Role> selectRoleByUserId(Integer uid) {
        return userroleMapper.selectRoleByUserId(uid);
    }
}
